<?php

/**
 * API公用方法
 */
trait Trait_Api_Model
{
    /**
     * 获取主table
     * @param $typeid
     * @return mixed
     * User: netman
     * Date: 2023/9/18 15:32
     */
   public function get_main_table($typeid)
   {
       return DB::select('maintable')->from('model')->where('id', '=', $typeid)
           ->execute()
           ->get('maintable');
   }




}